//
//  SixCollectionViewCell.m
//  GSG
//
//  Created by gaox on 15/4/23.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "SixCollectionViewCell.h"

@implementation SixCollectionViewCell
-(instancetype )initWithFrame:(CGRect)frame
{
    self=[super initWithFrame:frame];
    if (self)
    {

        self.sortImageView=[[UIImageView alloc]initWithFrame:CGRectMake(0, 0, self.contentView.frame.size.width * 100 / 100, self.contentView.frame.size.height * 100 / 120)];
        self.sortImageView.layer.cornerRadius = 15;
        self.sortImageView.contentMode = UIViewContentModeScaleAspectFill;
        self.sortImageView.autoresizesSubviews = YES;
        self.sortImageView.clipsToBounds = YES;
        self.sortImageView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"button.jpg"]];
        [self .contentView addSubview:self.sortImageView];

        self.sortLabel=[[UILabel alloc  ]initWithFrame:CGRectMake(0, self.contentView.frame.size.height * 100 / 120, self.contentView.frame.size.width * 100 / 100, self.contentView.frame.size.height * 20 / 120)];
        [self.contentView addSubview:self.sortLabel];
        [_sortImageView release];
        [_sortLabel release];
    }
    return self;
}

@end
